-- GENERATED SPELL FOR [Mage Slayer] --


function spell0_26730(pUnit, Event) --@Draw Magic,Self--
pUnit:FullCastSpellOnTarget(50131,pUnit)
pUnit:RegisterEvent('Sorts_26730', 10324, 1)
end

function spell1_26730(pUnit, Event) --@Spell Lock,n/a--
pUnit:FullCastSpellOnTarget(30849,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26730', 4298, 1)
end

function Sorts_26730(pUnit, Event)
local choix_sorts_26730 = math.random(0, 1)
if choix_sorts_26730 == 0 then
pUnit:RegisterEvent('spell0_26730', 1, 1)
end
if choix_sorts_26730 == 1 then
pUnit:RegisterEvent('spell1_26730', 1, 1)
end
end

function mob26730_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26730', math.random(1500, 3000), 1)
end

function mob26730_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26730_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26730_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26730, 1, 'mob26730_Action')
RegisterUnitEvent(26730, 2, 'mob26730_Leave')
RegisterUnitEvent(26730, 3, 'mob26730_Kill')
RegisterUnitEvent(26730, 4, 'mob26730_Die')
